package com.komon.object.response;

import com.komon.constant.Configuration;

public final class StatusLine {
	private final String httpVersion;
	private int statusCode;
	private final String reason;
	
	public StatusLine(int statusCode) {
		this(Configuration.HTTP_VERSION, statusCode, "");
	}
	
	public StatusLine(String httpVersion, int statusCode, String reason) {
		this.httpVersion = httpVersion;
		this.statusCode = statusCode;
		this.reason = reason;
	}

	public String getHttpVersion() {
		return httpVersion;
	}

	public int getStatusCode() {
		return statusCode;
	}

	public String getReason() {
		return reason;
	}

	/**
	 * @param statusCode the statusCode to set
	 */
	public void setStatusCode(int statusCode) {
		this.statusCode = statusCode;
	}
	
	
}
